#include<stdio.h>
int main()
{
   int nums[]={2,3,4,3,3,6,32,6,8,8};
   int val,count=0;
   int len=sizeof(nums)/4;
   scanf("%d",&val);
   for(int i=0;i<len;i++)
   {
    if(nums[i]==val)
    
      count+=1;
    nums[i+1-count]=nums[i+1];
   }
    len-=count;
    printf("%d nums=",len);
    for(int i=0;i<len;i++)
    {
        printf("%d ",nums[i]);
    }
    printf("\n");
    return 0;
}